package com.cskaoyan.bean.vo.vxVo;

import com.cskaoyan.bean.param.StaticParam;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author by WANGJun
 * @date 2022/6/8 9:43
 */

    @Data
    public  class OrderInfoBean{
        /**
         * consignee : 保安处
         * address : 北京市市辖区东城区 西大街
         * addTime : 2022-06-08 09:23:33
         * orderSn : 20220608355684
         * actualPrice : 0
         * mobile : 17817817811
         * message :
         * orderStatusText : 已付款
         * aftersaleStatus : 0
         * goodsPrice : 201
         * couponPrice : 1000
         * id : 490
         * freightPrice : 100
         * handleOption : {"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":true,"rebuy":false,"aftersale":false}
         */

        private String consignee;
        private String address;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date addTime;
        private String orderSn;
        private int actualPrice;
        private String mobile;
        private String message;
        private String orderStatusText;
        private int aftersaleStatus;
        private int goodsPrice;
        private int couponPrice;
        private int id;
        private int freightPrice;
        private HandleOptionBean handleOption;

    public void setOrderStatusText(Integer orderStatus) {
        this.orderStatusText = StaticParam.orderStatusTextMap.get(orderStatus);
    }
}
